local skynet = require 'skynet'
require 'skynet.manager'

skynet.error('lesson3 started')

skynet.start(
    function()
        skynet.timeout(
            300,
            function()
                skynet.error('lesson3 end')
                skynet.sleep(0)
                skynet.abort()
            end
        )

        local key = 1
        local t = {
            [key] = 'foo',
            key = 'bar'
        }
        for k, v in pairs(t) do
            skynet.error('key:' .. k .. ', type(key):' .. type(k))
        end
        skynet.error('type(t.key):' .. type(t.key))
    end
)
